package com.yiyibook.service.impl;

import com.yiyibook.entity.OrderLine;
import com.yiyibook.mapper.OrderLineMapper;
import com.yiyibook.service.OrderLineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 〈功能简述〉
 *
 * @author xun.gong@hand-china.com
 * @date 2019/10/15
 */
@Service
public class OrderLineServiceImpl implements OrderLineService {

    @Autowired
    private OrderLineMapper orderLineMapper;

    @Override
    public void insert(OrderLine orderLine) {
        orderLineMapper.insertSelective(orderLine);
    }

    @Override
    public List<OrderLine> selectByHeadId(Integer orderHeadId) {
        return orderLineMapper.selectByOrderHeadId(orderHeadId);
    }
}
